package biz.core.dao.ibatisImpl;
import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import biz.core.dao.AuctionDao;
import biz.core.domain.Auction;
import biz.core.exception.DAOException;


public class AuctionDaoImpl extends SqlMapClientDaoSupport implements AuctionDao {
	   public List<Auction> findAll() {
           return getSqlMapClientTemplate().queryForList("Auction.selectAll");
    }

	public List<Auction> findByName(String name) throws DAOException {
		return getSqlMapClientTemplate().queryForList("Auction.findByName",name);
	}
	   
}
